package com.msb.desginpatterns.strategy;

public class Cat {
    int weight, height;

    public Cat(int weight, int height)
    {
        this.weight = weight;
        this.height = height;
    }

    public int compareTo(Cat c) {
        return Integer.compare(this.weight, c.weight);
    }

    public String toString()
    {
        return "Cat{"+"weight=" + weight + ", height=" + height+"}";
    }
}
